package com.xyoto.takeawayBusiness.enums;

/**
 * @Description
 * @Author: TingFeng
 * @CreateTime: 2022/4/26  19:39
 */
public enum OrderEnum implements Code{
    /**
     * 订单
     */
    ORDER_ID_IS_NULL(5001,"订单id参数错误"),
    ORDER_UPDATE_FAILED(5002,"修改订单状态失败"),
    ORDER_LIST_IS_NULL(5003,"查询完毕，查询订单为空"),
    ORDER_TYPE_ERROR(5004,"订单类型参数错误"),
    ORDER_NOT_EXIST(5005, "订单不存在"),
    ORDER_STATUS_ERROR(5006, "订单状态错误"),
    ORDER_STATUS_UPDATE_FAIL(5007, "订单状态修改失败");


    private int code;
    private String msg;
    OrderEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }
}
